<?php
session_start();


unset($_SESSION["username"]);
unset($_SESSION["password_md5"]);
$past = time() - 10; 
 //this makes the time for 10 seconds ago 
setcookie(login, date("F jS - g:i a"), $past);
 
//Destroy session
session_destroy();

// Redirects to index
Header("Location: ../index.php"); 

?>